#include <stdio.h>

int main()
{
  int a = 66;
  printf("size: 0x%x\n", &a);
  printf("size: %p\n", &a);

  int p;
  p = (int)&a;
  printf("size: 0x%x\n", p);
  printf("size: %p\n", &a); // 64位架构，int和地址不一致

  printf("%lu\n", sizeof(int));
  printf("%lu\n", sizeof(&a));

  int b = 0, c;
  printf("%p\n", &b);
  printf("%p\n", &c);

  int d[10];
  printf("   &d: %p\n", &d);
  printf("    d: %p\n", d);
  printf("&d[0]: %p\n", &d[0]);
  printf("&d[1]: %p\n", &d[1]);

  return 0;
}